Skip to content

add -C target-cpu=mvp rust flag to build command#838

Merged
ascjones merged 1 commit intomasterfrom
ag-fix-no-mvp
Nov 23, 2022
Merged

add -C target-cpu=mvp rust flag to build command#838
ascjones merged 1 commit intomasterfrom
ag-fix-no-mvp

Conversation

@agryaznov
Copy link
Copy Markdown
Contributor

@agryaznov agryaznov commented Nov 22, 2022

nightly rust adds some new WASM features which are out of WASM MVP and hence not supported by pallet_contracts .

This change should catch\avoid such cases on the cargo contract build step.

Fixes #832

@agryaznov
Copy link
Copy Markdown
Contributor Author

I think we should backport this to 1.5.x as well

Copy link
Copy Markdown
Collaborator

@ascjones ascjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @athei?

@athei
Copy link
Copy Markdown
Contributor

athei commented Nov 22, 2022

LGTM. @athei?

jup. I am curious if this actually resolves the bug. It is just a hunch of mine.

@ascjones ascjones merged commit c217202 into master Nov 23, 2022
@ascjones ascjones deleted the ag-fix-no-mvp branch November 23, 2022 08:48
@wottpal
Copy link
Copy Markdown

wottpal commented Dec 2, 2022

gm. when will there be v1 & v2 tags/releases with this inside?

agryaznov added a commit that referenced this pull request Dec 9, 2022
@athei
Copy link
Copy Markdown
Contributor

athei commented Dec 9, 2022

Should happen pretty soon. Probably today there should be a release. No promises, though. @agryaznov already started the branch. And I think we only backport this single chance for now.

@agryaznov
Copy link
Copy Markdown
Contributor Author

released v1.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CodeRejected - Can't decode wasm code

4 participants